Optimal. Leaf size=74 \[ -\frac {\text {ArcCos}(a x)^2}{x}-4 i a \text {ArcCos}(a x) \text {ArcTan}\left (e^{i \text {ArcCos}(a x)}\right )+2 i a \text {PolyLog}\left (2,-i e^{i \text {ArcCos}(a x)}\right )-2 i a \text {PolyLog}\left (2,i e^{i \text {ArcCos}(a x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4724, 4804,
4266, 2317, 2438} \begin {gather*} -4 i a \text {ArcCos}(a x) \text {ArcTan}\left (e^{i \text {ArcCos}(a x)}\right )+2 i a \text {Li}_2\left (-i e^{i \text {ArcCos}(a x)}\right )-2 i a \text {Li}_2\left (i e^{i \text {ArcCos}(a x)}\right )-\frac {\text {ArcCos}(a x)^2}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2317
Rule 2438
Rule 4266
Rule 4724
Rule 4804
Rubi steps
\begin {align*} \int \frac {\cos ^{-1}(a x)^2}{x^2} \, dx &=-\frac {\cos ^{-1}(a x)^2}{x}-(2 a) \int \frac {\cos ^{-1}(a x)}{x \sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {\cos ^{-1}(a x)^2}{x}+(2 a) \text {Subst}\left (\int x \sec (x) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {\cos ^{-1}(a x)^2}{x}-4 i a \cos ^{-1}(a x) \tan ^{-1}\left (e^{i \cos ^{-1}(a x)}\right )-(2 a) \text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )+(2 a) \text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-\frac {\cos ^{-1}(a x)^2}{x}-4 i a \cos ^{-1}(a x) \tan ^{-1}\left (e^{i \cos ^{-1}(a x)}\right )+(2 i a) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \cos ^{-1}(a x)}\right )-(2 i a) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \cos ^{-1}(a x)}\right )\\ &=-\frac {\cos ^{-1}(a x)^2}{x}-4 i a \cos ^{-1}(a x) \tan ^{-1}\left (e^{i \cos ^{-1}(a x)}\right )+2 i a \text {Li}_2\left (-i e^{i \cos ^{-1}(a x)}\right )-2 i a \text {Li}_2\left (i e^{i \cos ^{-1}(a x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 98, normalized size = 1.32 \begin {gather*} -\frac {\text {ArcCos}(a x) \left (\text {ArcCos}(a x)+2 a x \left (-\log \left (1-i e^{i \text {ArcCos}(a x)}\right )+\log \left (1+i e^{i \text {ArcCos}(a x)}\right )\right )\right )}{x}+2 i a \text {PolyLog}\left (2,-i e^{i \text {ArcCos}(a x)}\right )-2 i a \text {PolyLog}\left (2,i e^{i \text {ArcCos}(a x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 136, normalized size = 1.84
method | result | size |
derivativedivides | \(a \left (-\frac {\arccos \left (a x \right )^{2}}{a x}-2 \arccos \left (a x \right ) \ln \left (1+i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )+2 \arccos \left (a x \right ) \ln \left (1-i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )+2 i \dilog \left (1+i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )-2 i \dilog \left (1-i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )\right )\) | \(136\) |
default | \(a \left (-\frac {\arccos \left (a x \right )^{2}}{a x}-2 \arccos \left (a x \right ) \ln \left (1+i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )+2 \arccos \left (a x \right ) \ln \left (1-i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )+2 i \dilog \left (1+i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )-2 i \dilog \left (1-i \left (a x +i \sqrt {-a^{2} x^{2}+1}\right )\right )\right )\) | \(136\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acos}^{2}{\left (a x \right )}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acos}\left (a\,x\right )}^2}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________